 <?php 

 $tabla="novedades";
 $condicion=" novFechaDesde>=".date("Y-m-d")." and novFechaHasta>=".date("Y-m-d")." and novPublicar=1";
 $orden=" order by novOrden asc";
 $res=cons_sql($tabla,$condicion,$orden);
 $class="item active";
 
 ?>
 
 <!-- Destacados -->
        <section class="featured">
            <div class="container">
                <div class="row">
                    <div id="home-slider" class="carousel slide span10 offset1">
                        <div class="carousel-inner">
						<?php while($reg=mysql_fetch_array($res)):?>
                            <div class="<?php echo $class ?>">
                                <a href="cursos.php?cur_id=<?php echo $reg['novId']?>"><img src="<?php echo RUTAPANEL.$reg['novImagen']?>" alt="<?php echo remplazar_car($reg['novTitulo'])?>"></a>
                                <div class="carousel-caption">
                                    <h2><a href="<?php echo $reg['novUrl']?>" target="<?php echo $reg['novTipoEnlace']?>"><?php echo remplazar_car($reg['novTitulo'])?></a></h2>
                                    <p><?php echo remplazar_car($reg['novResumen'])?></p>
                                    
                                </div>
                            </div>
						<?php 
						$class="item";
						endwhile?>	
                           
							
                        </div>
                        <a class="left carousel-control" href="#home-slider" data-slide="prev">
                            <i class="icon-angle-left"></i>
                        </a>
                        <a class="right carousel-control" href="#home-slider" data-slide="next">
                            <i class="icon-angle-right"></i>
                        </a>
                    </div>
                </div>
            </div>
        </section>